package c.e.a.b.e.c;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class t5 implements b6 {
    public b6[] a;

    public t5(b6... b6VarArr) {
        this.a = b6VarArr;
    }

    public final boolean a(Class<?> cls) {
        for (b6 a : this.a) {
            if (a.a(cls)) {
                return true;
            }
        }
        return false;
    }

    public final c6 b(Class<?> cls) {
        for (b6 b6Var : this.a) {
            if (b6Var.a(cls)) {
                return b6Var.b(cls);
            }
        }
        String str = "No factory is available for message type: ";
        String name = cls.getName();
        throw new UnsupportedOperationException(name.length() != 0 ? str.concat(name) : new String(str));
    }
}
